<?php require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
MYTCONN();
	form_pr('frmExtBen','','','post');?>
<div class="title">Extracto de Pagamentos de ServiÇos</div>
<div style="padding:4px;background-color:#F2F2F2">
<table style="padding:5px"  border="0" cellpadding="3" cellspacing="1">
    <tr>
      <td NOWRAP>Beneficiarios: 
        <?php
          mn_field('select','ED','extbnfAccount','',"SELECT BnfNumero AS ID, BnfNombre AS NAME 
				FROM beneficiarios 
				INNER JOIN beneficiariosinstitucionais ON BnfNumero = BnfExtNumero
				WHERE BnfExtTransactionType = 1",'','',''); ?></td>
      <td style="width:120px"><?php mn_field('button','ED','extbnfSubmit','Consultar Movimentos','','','','" style="padding:3px" onclick="
			document.frmExtBen.action=\'Modules/FTK9D4D0/a08_rsExtract.php\';
			subform(\'frmExtBen\',\'rsextbnf\');'); ?></td>
      <td NOWRAP>Periodo: 
        <?php
          echo ' Entre ';
		  mn_field('date','ED','extbnf_DateStart',date("Y-m-01"),'frmrsAcCorr','8','','');
		  echo ' e ';
		  mn_field('date','ED','extbnf_DateEnd','','frmrsAcCorr','8','','');?></td>
      <td></td>
    </tr>
</table>
</div>
</form>
<div id="rsextbnf"></div>
